<?php
if(isset($_FILES['imageName']['error']) && $_FILES['imageName']['error']==0)
{
  //$fileName = time().'_'.$_FILES['imageName']['name'];
  $fileName = date('ymdHis').'_'.$_FILES['imageName']['name'];
  $src = $_FILES['imageName']['tmp_name'];
  $dest = "uploads/$fileName";

  copy($src, $dest);
}
print_r($_FILES);
?>
<form name="uploadFiles" action="" method="post" enctype="multipart/form-data">

Upload File  : <input type="file" name="imageName" >
<br>
<input type="submit" name="upload" value="Upload Image !!">

</form>
